/****** Object:  Stored Procedure [dbo].spChiTietBienBanKiemKeKhoUpdate Script Date: 7/16/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spChiTietBienBanKiemKeKhoUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		17/07/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoUpdate]
(
	@MaBBKKK nvarchar(12),
	@MaLuuKho int,
	@TonSoSach int,
	@TonThucTe int,
	@ChenhLechThucTe int,
	@TinhTrang nvarchar(50)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_ChiTietBienBanKiemKeKho]
SET [TonThucTe] = @TonThucTe,
	[ChenhLechThucTe] = @ChenhLechThucTe,
	[TonSoSach] = @TonSoSach,
	[TinhTrang] = @TinhTrang
WHERE	[MaBBKKK] = @MaBBKKK	AND [MaLuuKho] = @MaLuuKho
GO

--GRANT EXECUTE ON [dbo].[spChiTietBienBanKiemKeKhoUpdate] TO [sa]
--GO
